package ru.niir.goodfil.db.dic;

import ru.niir.goodfil.utils.Pair;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Волков Олег on 18.11.14.
 */
public final class Firm {

    public static final int REGOR = 5;

    public static final int REGOR_BUH = 6;

    public static final int SPEC_INSTR = 7;

    public static final int SPEC_INSTR_BUH = 8;

        public static String asString(int value) {
            switch (value){
                case Firm.REGOR : return "Регор";
                case Firm.REGOR_BUH : return "Регор бух.";
                case Firm.SPEC_INSTR : return "СИ";
                case Firm.SPEC_INSTR_BUH : return "СИ бух.";
            }
            return "";
        }

        private static Pair getPair(int value) {
            return new Pair(value, asString(value));
        }

        public static List<Pair> list() {
            return new ArrayList<Pair>() {{
                add(getPair(Firm.REGOR));
                add(getPair(Firm.REGOR_BUH));
                add(getPair(Firm.SPEC_INSTR));
                add(getPair(Firm.SPEC_INSTR_BUH));
            }};
        }

    }
